<?php

include __DIR__ . '/loader.php';

$action = isset($_GET['action']) ? $_GET['action'] : 'panduan';
switch ($action) {
	case 'logout':
		session_unset();
    	session_destroy();
    	session_write_close();
    	// http_redirect("login.php", array("name" => "value"), true, HTTP_REDIRECT_PERM);
    	header("Location: login.php");
		die();
		break;
	case 'qas-satu':
		include __DIR__.'/qas-satu.php';
		break;
	case 'qas-dua':
		include __DIR__.'/qas-dua.php';
		break;
	case 'qas-tiga':
		include __DIR__.'/qas-tiga.php';
		break;
	case 'panduan':
		include __DIR__.'/panduan.php';
		break;

	default:
		// include __DIR__.'/panduan.php';
		include __DIR__.'/qas-satu.php';
		break;
}